package kata11;

import org.junit.Assert;
import org.junit.Test;

public class SortingTest2 {
    @Test
    public void should_return_ab_charater_when_add_ba () {
        Sorting2 sorting = new Sorting2();
        sorting.setWord("ba");
        Assert.assertEquals("ab", sorting.sort());
    }
    @Test
    public void should_return_aab_charater_when_add_baA () {
        Sorting2 sorting = new Sorting2();
        sorting.setWord("baA");
        Assert.assertEquals("aab", sorting.sort());
    }
   @Test
    public void should_return_sorting_charater_when_add_words () {
       Sorting2 sorting = new Sorting2();
       sorting.setWord("When not studying nuclear physics, Bambi likes to play beach volleyball.");
       Assert.assertEquals("aaaaabbbbcccdeeeeeghhhiiiiklllllllmnnnnooopprsssstttuuvwyyyy", sorting.sort());
   }
}
